class AddAccounts < ActiveRecord::Migration
  def self.up
    add_column :workers, :artist_name, :string
    add_column :workers, :mobile, :string
    add_column :workers, :email,  :string
    add_column :workers, :password, :string
    add_column :workers, :salt, :string
    add_column :workers, :admin, :integer, :default => 0
  end

  def self.down
    remove_column :workers, :artist_name
    remove_column :workers, :mobile
    remove_column :workers, :email
    remove_column :workers, :password
    remove_column :workers, :salt
    remove_column :workers, :admin
  end
end
